import request from '@/router/axios'

export function workCheckFetchList(query) {
  return request({
    url: '/eims/workCheck/getFirstCheckByPage',
    method: 'get',
    params: query
  })
}

// update初检状态
export function workCheckCheckObj(obj) {
  return request({
    url: '/eims/workCheck/updateFirstCheckBySaleId',
    method: 'put',
    data: obj
  })
}


// update初检状态
export function workFirstCheckByIds(obj) {
  return request({
    url: '/eims/workCheck/batchUpdateFirstCheckBySaleIds',
    method: 'put',
    data: obj
  })
}


export function workCheckAddObj(obj) {
  return request({
    url: '/eims/workCheck/getWorkCheckByPage',
    method: 'post',
    data: obj
  })
}

export function workCheckGetObj(id) {
  return request({
    url: '/eims/workCheck/getWorkCheckByPage/' + id,
    method: 'get'
  })
}

export function workCheckDelObj(id) {
  return request({
    url: '/eims/workCheck/getWorkCheckByPage/' + id,
    method: 'delete'
  })
}

export function workCheckPutObj(obj) {
  return request({
    url: '/eims/workCheck/getWorkCheckByPage',
    method: 'put',
    data: obj
  })
}
